import request from '@/utils/request'

// 查询贵族设定列表
export function loadUserNoble() {
  return request({
    url: '/system/userNoble/all',
    method: 'get'
  })
}
// 查询贵族设定列表
export function listUserNoble(query) {
  return request({
    url: '/system/userNoble/list',
    method: 'get',
    params: query
  })
}

// 查询贵族设定详细
export function getUserNoble(id) {
  return request({
    url: '/system/userNoble/' + id,
    method: 'get'
  })
}

// 新增贵族设定
export function addUserNoble(data) {
  return request({
    url: '/system/userNoble',
    method: 'post',
    data: data
  })
}

// 修改贵族设定
export function updateUserNoble(data) {
  return request({
    url: '/system/userNoble',
    method: 'put',
    data: data
  })
}

// 删除贵族设定
export function delUserNoble(id) {
  return request({
    url: '/system/userNoble/' + id,
    method: 'delete'
  })
}

// 导出贵族设定
export function exportUserNoble(query) {
  return request({
    url: '/system/userNoble/export',
    method: 'get',
    params: query
  })
}